-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
20354 money request participants selector list refactoring #32692
20354 money request participants selector list refactoring #32692
Conversation
src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js
Show resolved
Hide resolved
src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js
Outdated
Show resolved
Hide resolved
src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Agata Kosior <agata.kosior57@gmail.com>
src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js
Outdated
Show resolved
Hide resolved
…rticipantsSelector.js Co-authored-by: VickyStash <vikstash@gmail.com>
Co-authored-by: Michael (Mykhailo) Kravchenko <rezkiy37@gmail.com>
@rushatgabhane Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-01-10.at.12.12.59.moviOS: NativeScreen.Recording.2024-01-10.at.12.18.32.movMacOS: Chrome / SafariScreen.Recording.2024-01-08.at.18.02.46.mov |
@rushatgabhane fixed conflicts |
@lukemorawski and @rushatgabhane , Could you please make sure that the author and reviewer checklists pass? |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
hey @lukemorawski - it seems like I'm also noticing a flicker of the skeleton appearing, which doesn't show up in the SearchPage or NewChatPage, not sure if this is a feature or bug. Screen.Recording.2024-01-12.at.01.57.42.mov |
@youssef-lr on it! |
@youssef-lr can you create an ticket from this comment, or should I just create a new PR and mention it here? |
The latter seems fine! |
@youssef-lr here's the quick fix PR |
🚀 Deployed to staging by https://github.com/cristipaval in version: 1.4.25-0 🚀
|
maxParticipantsReached, | ||
_.some(participants, (participant) => participant.searchText.toLowerCase().includes(searchTerm.trim().toLowerCase())), | ||
), | ||
[maxParticipantsReached, newChatOptions.personalDetails.length, newChatOptions.recentReports.length, newChatOptions.userToInvite, participants, searchTerm], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic is crashing...when I select more than 5 participants on request money Can not read personalDetails of undefined
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any steps to reproduce the crash? cause I had no crashes at all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Request money.
- set 7 $.
- Select 8 participants.
- Notice the crash.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, got it. PR with a fix is on it's way. Should I just mention it here and tag you in the comment, or will there be a new ticket for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can create the PR. I will mention the same on the current issue.
@parasharrajat here's the quick fix PR #34587 |
Thank you @lukemorawski @parasharrajat edit: all done and merged |
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.25-10 🚀
|
Details
This PR refactors the
MoneyRequestParticipantSelector
andMoneyRequestParticipantPage
to use new<SelectionList />
component.Some other changes had been made, like moving some logic to
useMemo
hooks instead of invaliduseEffect->useState
pattern.A new param has been added to
<SelectionList />
to allow it to display a component on the right hand side of each list item. This param allows to pass a react node or a function that will render a component.Fixed Issues
$ #20354
PROPOSAL: no proposal (draft pr)
Tests
same as QA steps
Verify that no errors appear in the JS console
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop